package controllers;

import java.io.IOException;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import util.UtilWeb;


@ManagedBean
@RequestScoped
public class ControllerLogoff {
    

    public ControllerLogoff() {
    }
    
    public void logoff() throws IOException{
        UtilWeb.setAtributoSessao("pessoa", null);
        UtilWeb.logoff();
        UtilWeb.redirecionar("index.xhtml");
    }
    
}
